import request from '@/utils/request'

export function addPostApi(params) {
  return request.post('/system/post/addPost', params)
}

export function modifyPostApi(params) {
  return request.put('/system/post/modifyPost', params)
}

export function getPostListApi(params) {
  return request.get('/system/post/getPostList', { params })
}

export function getActivePostApi(params) {
  return request.get('/system/post/getActivePost', { params })
}

export function deletePostApi(params) {
  return request.delete('/system/post/deletePost', { params })
}
